<?php /* Smarty version 2.6.26, created on 2010-05-10 12:34:03
         compiled from cms.page.settings.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'strlen', 'cms.page.settings.tpl', 1, false),)), $this); ?>
<div class="page_settings_container">    <form action="" enctype="multipart/form-data" method="post">        <h1>Side indstillinger for: <span class="blue"><?php echo $this->_tpl_vars['site']['meta']['title']; ?>
</span></h1>        <input type="hidden" name="q" value="command:do;action:page.save;page:<?php echo $this->_tpl_vars['site']['meta']['page']; ?>
;" >        <input type="hidden" name="nq" value="" >        <div class="blueBg" style="float: left;width:100%;border-top:1px solid #fff;border-bottom:1px solid #777;">            <input class="noBorder btnLeft" type="submit" value="Gem" />            <input class="noBorder btnLeft" type="submit" value="Gem og rediger" onclick="$('input[name=nq]').attr('value','command:cms;view:cms.editor;page:<?php echo $this->_tpl_vars['site']['meta']['page']; ?>
;');" />            <input rel="tipAnchor" class="noBorder btnLeft" type="submit" value="Gem og gå til oversigt" onclick="$('input[name=nq]').attr('value','command:cms;view:cms.dashboard;');" />        </div>        <div class="clear"></div>        <div class="page_variables">            <p><span>Sidens navn: </span><input type="text" name="title" value="<?php echo $this->_tpl_vars['site']['meta']['title']; ?>
" /><span class="blue"><?php echo $this->_tpl_vars['site']['meta']['title']; ?>
</span></p>            <p><span>Beskrivelse: </span><input type="text" name="description" value="<?php echo $this->_tpl_vars['site']['meta']['description']; ?>
" /><span class="blue"><?php echo $this->_tpl_vars['site']['meta']['description']; ?>
</span></p>            <p><span>Menu tekst: </span><input type="text" name="menuname" value="<?php echo $this->_tpl_vars['site']['meta']['menuname']; ?>
" /><span class="blue"><?php echo $this->_tpl_vars['site']['meta']['menuname']; ?>
</span></p>            <?php if (( ((is_array($_tmp=$this->_tpl_vars['OPTIONS']['page'])) ? $this->_run_mod_handler('strlen', true, $_tmp) : strlen($_tmp)) ) > 1): ?>            <p><span>URL navn: </span><input type="text" name="urlname" value="<?php echo $this->_tpl_vars['OPTIONS']['urlname']; ?>
" /><span class="blue"><?php echo $this->_tpl_vars['OPTIONS']['urlname']; ?>
</span></p>            <?php endif; ?>            <p><span>Vis i menuen: </span>                <select name="show" >                    <?php if ($this->_tpl_vars['site']['meta']['show'] == '0'): ?>                    <option value="0">Nej</option>                     <option value="1">Ja</option>                    <?php else: ?>                    <option value="1">Ja</option>                     <option value="0">Nej</option>                    <?php endif; ?>                </select>                <?php if ($this->_tpl_vars['site']['meta']['show'] == '0'): ?>                <span style="color:#ee2222;font-style:normal;font-size:12px;">BEMÆRK: Siden er skjult</span>                <?php endif; ?>            </p>        </div>        <h1></h1>        <?php if ($this->_tpl_vars['site']['current']['menu']['children']): ?>        <div class="dashboard_item">            <a href="#">SORTERING AF UNDERSIDER<img alt="" src="style/icons/Document.png" /></a>            <div class="dashboard_item_content">                <ul id="subpage_sorting_list" class="pages_list">                    <?php $_from = $this->_tpl_vars['site']['current']['menu']['children']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['e']):
?>                    <li>                        <div><span><?php echo $this->_tpl_vars['e']['menuname']; ?>
</span>                            <div class="pages_list_toolbox">                                <a href="?q=command:cms;view:cms.editor;page:<?php echo $this->_tpl_vars['e']['adress']; ?>
;"><img alt="" src="style/icons/Write_Document.png"/></a>                                <a href="?q=command:do;action:page.add;page:<?php echo $this->_tpl_vars['e']['adress']; ?>
;"><img alt="" src="style/icons/New_Document.png"/></a>                                <a href="?q=command:do;action:page.remove;page:<?php echo $this->_tpl_vars['e']['adress']; ?>
;"><img alt="" src="style/icons/Remove_Document.png"/></a>                                <a href="?q=command:cms;view:cms.page.settings;page:<?php echo $this->_tpl_vars['e']['adress']; ?>
;"><img alt="" src="style/icons/Gear.png"/></a>                                <span class="<?php if (count ( $this->_tpl_vars['site']['current']['menu']['children'] ) > 1): ?>header<?php else: ?>dead<?php endif; ?>" title="Træk op og ned i dette ikon for at sortere."><img alt="" src="style/icons/Menu_Item.png"/></span>                            </div>                            <input type="hidden" name="subpages_sort[]" value="<?php echo $this->_tpl_vars['e']['adress']; ?>
"/>                        </div>                    </li>                    <?php endforeach; endif; unset($_from); ?>                </ul>                <div class="clear"></div>            </div>        </div>        <?php endif; ?>    </form></div><?php echo '<script type="text/javascript">    var changesTipShown = false;    function changesMade(){        if(!changesTipShown){            changesTipShown = true;            $(\'input[rel="tipAnchor"]\').qtip("show");            return true;        }        return false;    }    $(function(){        $(".page_variables input[type=\'text\']").hide();        $(".page_variables input[type=\'text\']").next("span").css({cursor:\'pointer\',"min-width":"60px",border:"1px solid #444",display:"inline-block",height:"22px"});        $(".page_variables input[type=\'text\']").next("span").click(function(){            $(this).hide();            $(this).prev(\'input\').show();            $(this).prev(\'input\').focus();        });        $(".page_variables input[type=\'text\']").blur(function(){            $(this).hide();            if ($(this).next(\'span\').html() != $(this).attr(\'value\')){                changesMade();            }            $(this).next(\'span\').html($(this).attr(\'value\'));            $(this).next(\'span\').show();        });        $(".page_variables input[name=\'title\']").change(function(){                    });        $(".page_variables select").change(function(){            changesMade();        });        $(\'input[rel="tipAnchor"]\').qtip({            content:\'Husk at gemme dine ændringer\',            style:{                name:\'light\',                border:{                    width:2,                    radius:6                },                padding:6,                textAlign:\'center\',                tip:true            },            position:{                corner:{                    target: "rightMiddle",                    tooltip: "leftMiddle"                },                adjust:{                    screen:true                }            },            show:{                when:{                    event:false                },                effect:{                    length:1000                }            },            hide:false        });        $("#subpage_sorting_list").sortable({            placeholder: \'page_item_placeholder\',            handle: \'.header\',            axis: \'y\',            containment: \'parent\',            forcePlaceholderSize: true ,            opacity: 0.9,            tolerance: \'pointer\'        });        $("#module_list").disableSelection();    });</script>'; ?>